
<template>
  <el-dialog
    title="充值卡统计"
    :visible.sync="dialogVisible"
    width="70%"
    destroy-on-close
    append-to-body
    custom-class="k-dilaog"
    class="z-dialog"
    @closed="closedEvent">
    <el-table
      class="k-table"
      ref="table"
      :data="tableList"
      v-loading="loading"
    >
      <!--<el-table-column label="多选" type="selection" align="center" fixed width="50" />-->
      <el-table-column label="NO" type="index" align="center" fixed width="50" />
      <el-table-column label="充值卡点数" align="left" prop="points" min-width="100px" show-overflow-tooltip />
      <el-table-column label="充值卡数量" align="left" prop="numberOfCard" min-width="80" show-overflow-tooltip />
      <el-table-column label="备注" align="left" prop="remark" show-overflow-tooltip min-width="120"/>
      <el-table-column label="创建时间" align="left" prop="createTime" min-width="100" show-overflow-tooltip />
      <el-table-column label="创建人ID" align="left" prop="createBy" min-width="80" show-overflow-tooltip />
      <el-table-column label="修改时间" align="left" prop="updateTime" min-width="100" show-overflow-tooltip />
      <el-table-column label="修改人ID" align="left" prop="updateBy" min-width="80" show-overflow-tooltip />
      <!--<el-table-column label="操作" align="left" width="150" fixed="right">-->
      <!--  <template #default="{ row }">-->
      <!--    <el-button type="text" @click="clickBtnDel(row)" :disabled="row.status!=='01'">作废</el-button>-->
      <!--    <el-button type="text" @click="clickBtnLook(row)">查看</el-button>-->
      <!--  </template>-->
      <!--</el-table-column>-->
    </el-table>
    <span slot="footer" class="dialog-footer">
     <el-button @click="dialogVisible = false">关 闭</el-button>
    </span>
  </el-dialog>
</template>

<script>
import request from '@/utils/request';

export default {
  name:"rechargeCardTJDialog",
  data(){
    return{
      dialogVisible:false,
      loading:false,
      tableList:[],
      callBack:null,
      pageType:0,//0充值卡生成1充值卡查看
      id:null,
    }
  },
  methods:{
    openDiaolog(pageType,id,block){
      this.pageType = pageType;
      this.id = id;
      this.callBack = block;
      this.dialogVisible = true;

      this.requestDataDetail();

    },
    clickSureBtn(){
    },
    closedEvent(){
      this.form = {};
    },
    //网络-详情
    requestDataDetail(){
      request({
        url:`/card_count/list`,
        method:'get',
        params: {}
      }).then(response =>{
        this.tableList = response.rows;
      })
    },

  }
}

</script>

<style scoped>

</style>
